package redis

const (
	articleDiggPrefix        = "article_digg"
	articleLookPrefix        = "article_look"
	articleCommentPrefix     = "article_comment_count"
	articleCommentDiggPrefix = "comment_digg"
)

// NewDigg 点赞
func NewDigg() CountDB {
	return CountDB{
		Index: articleDiggPrefix,
	}
}

// NewArticleLook 增加浏览
func NewArticleLook() CountDB {
	return CountDB{
		Index: articleLookPrefix,
	}
}

// NewCommentCount 增加评论数
func NewCommentCount() CountDB {
	return CountDB{
		Index: articleCommentPrefix,
	}
}

// NewCommentDiggCount 增加评论点赞数
func NewCommentDiggCount() CountDB {
	return CountDB{
		Index: articleCommentDiggPrefix,
	}
}
